package com.haoyeteng.sxbd.modular.business.dao;

import com.baomidou.mybatisplus.plugins.Page;
import com.haoyeteng.sxbd.modular.business.model.Account;
import com.haoyeteng.sxbd.modular.business.model.Category;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 新闻分类表 Mapper 接口
 * </p>
 *
 * @author haoyeteng123
 * @since 2019-06-11
 */
public interface CategoryMapper extends BaseMapper<Category> {

    /**
     * 查询列表
     * @param page
     * @param categoryName
     * @return
     */
    List<Map<String, Object>> selectCategories(Page<Category> page, @Param("categoryName")String categoryName);

}
